Skip to content

[Staking] Consolidate try state warnings#11649

Merged
Ank4n merged 10 commits intomasterfrom
ankn-try-state-consolidate
Apr 7, 2026
Merged

[Staking] Consolidate try state warnings#11649
Ank4n merged 10 commits intomasterfrom
ankn-try-state-consolidate

Conversation

@Ank4n
Copy link
Copy Markdown
Contributor

@Ank4n Ank4n commented Apr 6, 2026

Resolves #11646

@Ank4n Ank4n requested a review from a team as a code owner April 6, 2026 08:37
@Ank4n
Copy link
Copy Markdown
Contributor Author

Ank4n commented Apr 6, 2026

New consolidated try state warnings

see: https://github.com/paritytech/polkadot-sdk/actions/runs/24025096255/job/70061936840?pr=11649

[2026-04-06T08:48:22Z WARN  runtime::staking-async] [14312960] 💸 1482/73551 chilled stashes have less stake than minimum role bond (1000000000000). Examples: [bed4f0caa42287b4873d4e097a449a1e1880b95f476f392f33c83cc57d333d6c (5GNvDEps...), 1c848f8bfdc6ffb0f32f60ddfd2bf5fdf35fb1ee30d4134807284717e0b9574d (5Ci6aQFc...), ca09e7e931a0527779e24b9b2e68b10aacadc9c9eead6e4c2186103a6014d613 (5GdcUMsY...), f0f4f115ef9ddd26f7a1406b3494e4cd0974cfb663b91f889736a89bb08cf740 (5HWe7UKL...), 260323ba56037d58d8d40a88c8f287fc6ca134706820779e4840bc0b39ef880a (5CvYcJMa...), b43d79d3159e6b8a0cd791682ec5a75e96cd00b183b3c98adb0fdb28a7c1571e (5G92jnm3...), 392837fee4372f37275b972b82f0b48e73ecb4dfa73bd097edba238cc25c69ff (5DMeXvno...), 3090d4dbc10e334d9c48cefd961993fe435e0a6bad12570fbd949b9acb1dc161 (5DAPBNJM...), 8883a27c0105d9efbea8f1eda390afcbc225806a89549f9781c28f59226e8f57 (5F9hUPww...), 900059037550106b9c85318b914ac41387d97a73bcc9a3829c40eabd573ca303 (5FKWrbL4...)]
[2026-04-06T08:48:22Z WARN  runtime::staking-async] [14312960] 💸 17/73551 nominators have less stake than minimum role bond (1000000000000). Examples: [aa5ba65fc967193b6eab0cf55d11f256008b0eba9ca5455c2203ca0a57b07713 (5Fv5DuKj...), fc6250a25b8e6a6852a288827998522ee3e556bfb171e3aec041e5b934fb990d (5Hmd8UkL...), c03b53ee8578764e4978167a7e2a4aa95eb867b2400f7d54a5e142880a1b3650 (5GQkg7De...), 28e56346d851e0fabb48f1fc745621140b393fe8be3a36895fd28e069597506e (5CzKv2B3...), f0cbc5102b81acf4875c316ebb7bcd6e7cfe437b73e104e6ebc83fc411e7c17b (5HWRt6V7...), 24f7fb827640179d8a5d118dbb57670bc7390eba2a70a9de49851471ba663a4b (5CuBFHnt...), 66824a82b8c44ff33264d3a63596104696ba06b9935a36bbf3d69c365f55e266 (5EP7SpMh...), 96e5475fb4e7296b6ae9501135624d573e6ffc875df8e0373899aca08b0e2920 (5FUZ9eWU...), ec17fb0bc229cbf6c157632a7a25490dc85e1e9bd2398a00bf619c254429c266 (5HQGHHrz...), 3e13ccd7eaea899f86633e5150562bb445510d2903a03ed70c18866f3533871f (5DU6i1bh...)]
[2026-04-06T08:48:22Z WARN  runtime::staking-async] [14312960] 💸 11/73551 validators have less stake than minimum role bond (1000000000000). Examples: [466bc4899007e65fb048873b2d7a458e72c472bcab799c3ea01fffa702c1e973 (5Df3Dsio...), 90ad1d13ea71bfcacf5172bd440df0a0649731b13b32e398a3237a229f0d4205 (5FLQBHAH...), 9cf08e553d691eed6c13d82ff9935f31bfd38b4bb4af368387028aeb7d921a2d (5FcUncVX...), 740faed8dff1706347e0bd707a5c3c57ce41d1bb41bab8b1e4871716f65cb408 (5Egt53nN...), 28e124b92bc0933801797c215367db82b729becb40c6654dbc3da8ce03229e71 (5CzJetiz...), d211cd36b678ada6fff2ab1a38e183f0f8436a6888b4743943001e3e2d626fb3 (5Gp9Ccs6...), c65e9ae6890d6165841d98c506870ba986ad9a41b0bf8b75897725021e923752 (5GYoSaqn...), b64e3fbb9a89dfdcae05518b7576735b4d2754bf29c915813e31d5e6ce2bbf28 (5GBjpLYh...), 96bc653cadac9d55e1d7339cd8bdc09d13d201b8a1f0d9999000bd71afad3d68 (5FUM1F6X...), d88b45bd68b8392896ea304a47560ca9987dd3dd611d207833160a28c1de6f46 (5GxdaBBH...)]
[2026-04-06T08:48:30Z WARN  runtime::nomination-pools] [14312960] 🏊‍♂️ 303/309 pools have incorrect ED frozen (expected 1000000000). Use `adjust_pool_deposit` to fix. Examples: [224, 312, 288, 210, 30, 196, 298, 168, 173, 206]

@Ank4n Ank4n added the T10-tests This PR/Issue is related to tests. label Apr 6, 2026
Comment thread substrate/frame/nomination-pools/src/lib.rs
const MAX_EXAMPLES: usize = 10;

BondedPools::<T>::iter().try_for_each(|(id, inner)| -> Result<(), TryRuntimeError> {
total_pools += 1;
Copy link
Copy Markdown
Contributor

@andreitrand andreitrand Apr 7, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: total_pools simply equals BondedPools::<T>::count(), so I suggest simply setting it to this value before the iteration rather than incrementing it by 1 (for extra clarity).

const MAX_EXAMPLES: usize = 10;

BondedPools::<T>::iter_keys().for_each(|id| {
total_pools += 1;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: Same as above: I suggest setting total_pools directly to BondedPools::<T>::count() before the loop.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No strong opinions but I don't think it matters much. We are looping anyways.

Comment thread substrate/frame/staking-async/src/pallet/impls.rs
Copy link
Copy Markdown
Member

@ggwpez ggwpez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@Ank4n Ank4n enabled auto-merge April 7, 2026 18:46
@Ank4n Ank4n added this pull request to the merge queue Apr 7, 2026
Merged via the queue into master with commit de42646 Apr 7, 2026
460 of 475 checks passed
@Ank4n Ank4n deleted the ankn-try-state-consolidate branch April 7, 2026 21:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

T10-tests This PR/Issue is related to tests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Staking] Try State check warnings

5 participants